package org.idea.qiyu.framework.marketing.service.impl;

import org.idea.qiyu.framework.marketing.mapper.MarketingProductMapper;
import org.idea.qiyu.framework.marketing.model.MarketingProduct;
import org.idea.qiyu.framework.marketing.service.IMarketingProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author linhao
 * @Date created in 6:56 下午 2021/7/23
 */
@Service
public class MarketingProductServiceImpl implements IMarketingProductService {

    @Resource
    private MarketingProductMapper marketingProductMapper;

    @Override
    public List<MarketingProduct> selectAll(){
        return marketingProductMapper.selectAll();
    }

    @Override
    public MarketingProduct selectByProductNo(Integer productNo){
        return marketingProductMapper.selectByProductNo(productNo);
    }
}
